package com.csnf.jtz.service.impl;

import com.csnf.jtz.dao.StudentDao;
import com.csnf.jtz.dao.impl.StudentDaolmpl;
import com.csnf.jtz.entity.Student;
import com.csnf.jtz.service.StudentService;
import com.csnf.jtz.util.JdbcUtil;

import java.util.List;

public class StudentServicelmpl implements StudentService {
    StudentDao studentDao = new StudentDaolmpl() ;
    @Override
    public Boolean addStudent(Student student) throws Exception {
        return studentDao.addStudent(student);
    }

    @Override
    public Student getStudentById(Integer id) throws Exception {
        return studentDao.getStudentById(id);
    }

    @Override
    public List<Student> getAll(){
        return studentDao.getAll();
    }
}
